@import "@/styles/__index.less";

.component {
  display: grid;

  .form-box {
    height: 100%;
    display: flex;
    flex-direction: column;

    .form-items {
      flex: 1;
      display: flex;
      align-items: center;

      .form-disabled {
        .switch {
          margin-left: 15px;
        }
      }

      .request {
        position: relative;
        color: red;
        left: -4px;
      }

      &.flex-start {
        align-items: flex-start !important;

        .title {
          margin-top: 0.25em;
        }
      }

      .title {
        margin-right: 10px;
        color: #9ca0a5;
        font-weight: bold;
      }

      .item {
        flex: 1;
        height: 100%;
        position: relative;
        justify-content: flex-start !important;
        .flex-center;

        > :first-child {
          width: 100%;
        }

        .pad-text {
          margin-left: 15px;
        }

        .image {
          height: 100%;

          .placeholder {
            height: 100%;
            border: 1px solid #cccccc;
            cursor: pointer;
            .flex-column;

            .icon {
              font-size: 175%;
              margin-bottom: 10px;
            }

            .title {
              font-size: 125%;
              font-weight: bold;
            }
          }

          .close-icon {
            position: absolute;
            right: 10px;
            top: 10px;
            width: 30px;
            height: 30px;
            color: white;
            background-color: rgba(0, 0, 0, 0.3);
            font-size: 18px;
            border-radius: 99px;
            .flex-center;
          }
        }

        .switch {
          max-width: 45px;
        }
      }
    }
  }

  .request-hint {
    height: 0px;
    color: red;
    font-size: 12px;
  }

  .form-btns {
    grid-area: btn;
    flex: 1;
    display: flex;
  }
}
